.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.Child-container {
  margin: 10px;
  padding: 10px;
  border: 1px solid red;
}

.ProviderContainer {
  margin: 20px;
  padding: 10px;
  border: 5px solid red;
}

.GreenBorder {
  border-color: green;
}

.BlueBorder {
  border-color: blue;
}

.BrownBorder {
  border-color: brown;
}

.SectionHeader {
  display: flex;
  flex-direction: row;
}

.SectionTitle {
  flex: 1;
}

.SectionAction {
  width: 44px;
  cursor: pointer;
}

.ArrowDown {
  transform: rotate(90deg);
}

button {
  appearance: none;
  display: inline-flex;
  text-align: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 200ms ease-in-out;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.link {
  appearance: none;
  background: transparent;
  color: var(--accent);
  padding: 10px;
  text-decoration: underline;
  display: inline-block;
  margin: 10px;
  
}

.card {
  width: 240px;
  height: 320px;

  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 1s;
  transform-style: preserve-3d;
  
  position: relative;
  border-radius: 16px;
  margin: auto;
  background: var(--charcoal);

  figure {
    margin: 0;
    padding: 0;
    min-height: 0px;
    min-width: 0px;
    display: grid;
    grid-template-rows: 320px auto;
    place-items: center;
  }
  .half {
    margin: 0;
    padding: 0;
    min-height: 0px;
    min-width: 0px;
    display: grid;
    grid-template-rows: 160px auto;
    place-items: center;
  }
}

.contents {
  display: flex;
  flex-direction: row;
}

.content {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 1s;
  transform-style: preserve-3d;
  
  position: relative;
  border-radius: 16px;
  margin: auto;
  background: var(--beige);
  padding: 0 20px;
  
}

.content .name {
  font-size: 20px;
  font-weight: 700;
  padding: 20px;
  text-transform: uppercase;
}

figure h4 {
  color: var(--gray-light)
}

.img {
  max-width: 200px;
  height: auto;
  animation: animate-in 0.6s ease-in-out;
}

:root {
  --gray-light: #1b1d23;
    --gray-dark: #131519;
    --gray-darkest: #0d0f11;
    --coal: #0f0d0e;
    --charcoal: #231f20;
    --gray: #262522;
    --yellow: #fcba28;
    --pink: #f38ba3;
    --green: #0ba95b;
    --purple: #7b5ea7;
    --beige: #f9f4da;
    --blue: #12b5e5;
    --orange: #fc7428;
    --red: #ed203d;
    --white: #fff;
    --black: var(--coal);
}

section {
  position: relative;
}

section .loading {
  background-color: var(--gray);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  border-radius: 16px;
  animation: animate-in 2s ease-in-out;
}

.loader {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dots-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dots-loader span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3498db;
  margin: 0 5px;
  /* Animation */
  animation: bounce .3s ease-in-out infinite alternate;
}

/* You can fine-tune the delays so that the dots appear to bounce in sequence */
.dots-loader span:nth-child(1) {
  animation-delay: 0s;
}

.dots-loader span:nth-child(2) {
  animation-delay: 0.1s;
}

.dots-loader span:nth-child(3) {
  animation-delay: 0.2s;
}

.dots-loader span:nth-child(4) {
  animation-delay: 0.6s;
}

.dots-loader span:nth-child(5) {
  animation-delay: 0.8s;
}

/* Keyframes for bounce animation */
@keyframes bounce {
  from {
    transform: translateY(15px);
    background-color: white;
  }
  to {
    transform: translateY(-15px);
    background-color: #3498db;
  }
}

dialog {
  position: absolute;
  top: 40px;
  background: var(--purple);
  width: 75vw;
  margin: auto;
  display: block;
  animation: expand 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
  border-radius: 8px;
  padding: 32px;
  color: var(--white);
}

dialog button {
  position: absolute;
  top: 16px;
  right: 16px;
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  padding: 0;
  color: var(--charcoal);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}